package com.example.websocketclusterspringbootstarter.utils;

import com.corundumstudio.socketio.SocketIOClient;

public class ResponseUtil {

    private ResponseUtil() {
    }


    /**
     * 发送事件给客户端
     *
     * @param client    ws客户端
     * @param eventName 事件名称
     * @param o         具体的参数
     */
    public static void sendMsg(SocketIOClient client, String eventName, Object o) {
        client.sendEvent(eventName, o);
    }

}
